<template>
  <div id="classCourse">
    <module-title :cn_name="'课程体系'" :en_name="'CURRICULUM SYSTEM'" :mname="'class_course'"></module-title>
    <course-system :name="'设计课程体系'" :data="sys1"></course-system>
    <course-system :name="'PHP课程体系'" :data="sys2" ></course-system>
  </div>
</template>
<script>
  import ModuleTitle from '../Common/module-title'
  import CourseSystem from './CourseSystem'

  export default {
      data(){
         return {
             sys1 : { },
             sys2 : { }
         }
      },
    components: {ModuleTitle,CourseSystem},
    mounted(){
      this.axios.get(this.$store.state.API_ROOT+ 'Course1').then((response) => {
        this.sys1 = response.data
      })

      this.axios.get(this.$store.state.API_ROOT+ 'Course2').then((response) => {
        this.sys2 = response.data
      })
    }
  }
</script>
